package com.qf.electronic;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.time.LocalDate;
import java.util.Calendar;

@SpringBootApplication
public class ElectronicApp {

    public static void main(String[] args) {
        SpringApplication.run(ElectronicApp.class, args);

//        Calendar c = Calendar.getInstance();
//        c.set(1900, Calendar.JANUARY, -1);
//
//        LocalDate value = LocalDate.now();
//
//        long t1 = c.getTimeInMillis();
//        c.set(value.getYear(), value.getMonthValue() - 1, value.getDayOfMonth());
//        long t2 = c.getTimeInMillis();
//        long days = (t2 - t1) / (24 * 60 * 60 * 1000);
//        System.out.println(days);
//
//        LocalDate date = LocalDate.of(1900, 1, 1);
//        LocalDate now = date.plusDays(days - 2);
//        System.out.println(now.getMonthValue());
//        System.out.println(now);
    }
}
